def delete_substring(s, t):
    result = []
    t_len = len(t)
    i = 0
    while i < len(s):
        if s[i:i+t_len] == t:
            i += t_len
        else:
            result.append(s[i])
            i += 1
    return ''.join(result)

def main():
    s = input("Enter the string s: ")
    t = input("Enter the string t: ")

    result = delete_substring(s, t)
    print("String after deletion:", result)

if __name__ == "__main__":
    main()
